Ext.define('BEST.store.CmsuserStore', {
			extend : 'Ext.data.Store',
			model : 'BEST.model.CmsuserModel',
			autoSync: true,
			autoLoad: true,
			appendId: true,
			pageSize:15,
			proxy : {
				type : 'rest',
				url : mainServer + "/cmsuser",
				reader : {
					type : 'json',
					totalProperty : 'total',
					root : 'root',
					successProperty : 'success'
				},
				writer : {
					type : 'json'
				},
					afterRequest:function(request,success){
					var result=request.operation.success;
					if(request.action=='create'){
						if(result){
							this.storeLoad('数据添加成功!');
						}
						
					}else if(request.action=='update'){
						if(result){
							this.storeLoad('数据修改成功!');
						}
						
					}else if(request.action=='destroy'){
						if(result){
							this.storeLoad('数据删除成功!');
						}
					}
				},
				storeLoad:function(_msg){
					Ext.getStore('CmsuserStore').sync();
					Ext.getStore('CmsuserStore').reload();
					Ext.example.msg('温馨提示', _msg);
				}
			}
		});